package com.atguigu.service;

import com.atguigu.pojo.ContainerPortMap;
import com.atguigu.pojo.Page;

import java.util.List;

//在containerPortMap中建立containerPortMapService,定义containerPortMapServiceImpl需要实现的方法
public interface ContainerPortMapService {
    public void addContainerPortMap(ContainerPortMap containerPortMap);
    public void updateContainerPortMap(ContainerPortMap containerPortMap);
    public void deleteContainerPortMapById(String id);
    public void deleteContainerPortMapByContainerId(String containerId);
    public ContainerPortMap queryContainerPortMapById(String id);
    public ContainerPortMap queryContainerPortMapsByContainerIdAndOut(String containerId,String out);
    public ContainerPortMap queryContainerPortMapsByContainerIdAndIn(String containerId,String in);
    public List<ContainerPortMap> queryContainerPortMaps();
    public List<ContainerPortMap> queryContainerPortMapByContainerId(String containerId);
    public Page page(Integer pageNo, Integer pageSize);
}
